﻿@typeparam T
@foreach (var d in Data)
{
    if (Template is { })
    {
        @Template(d);
    }
}
@code
{
    [Parameter] public RenderFragment<T>? Template { get; set; }
    [Parameter] public IReadOnlyList<T> Data { get; set; } = Array.Empty<T>();
}